package com.liu.Excel;


import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


@Data
public class EmployeeExcel {


    @ExcelProperty("序号")
    private int id;
    @ExcelProperty("员工名字")
    private String empname;//员工名字
    @ExcelProperty("性别")
    private String gender;//性别
    @ExcelProperty("民族")
    private String nation;//名族
    @ExcelProperty("住址")
    private String city;//住址
    @ExcelProperty("薪资")
    private Double salary;//薪资
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ",timezone = "GMT+8")//指定JSON转换的日期格式
    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private String ctime ;
    @ExcelProperty("部门序号")
    private  int did;
}
